﻿/********************************************************************************/
// <copyright file="NewsSearchCriteria.cs" company="Asia E-Business Solutions">
//     Copyright © 2012. All right reserved
// </copyright>
// <history>
//     <change who="Phuoc Le" date="21/12/2012 5:10:53 PM">Created</change>
// </history>
/********************************************************************************/

namespace JLL.China.Model.DTO
{
    public enum NewsSearchOrder
    {
        Title,
        Status,
        DateCreated
    }

    public class NewsSearchCriteria
    {
        public int PageIndex { get; set; }
        public int Count { get; set; }
        public NewsSearchOrder OrderBy { get; set; }
        public bool Descending { get; set; }

        public NewsSearchCriteria()
        {
            OrderBy = NewsSearchOrder.DateCreated;
            Descending = false;
            PageIndex = 0;
            Count = 10;
        }
    }
}
